import Vue from 'vue'

import Vuex from 'vuex'

import getters from '@/store/getters.js'

import app from '@/store/modules/app.js'
import settings from '@/store/modules/settings.js'
import user from '@/store/modules/user.js'
import home from '@/store/modules/home.js'
import table from '@/store/modules/table.js'

Vue.use(Vuex)

const store = new Vuex.Store({
  modules: {
    app,
    settings,
    user,
    home,
    table
  },
  getters
})

export default store
